package com.gxa.service;

import com.gxa.common.ResponseData;
import com.gxa.pojo.Activity;

public interface ActivityService {
    /**
     * 查询活动
     * @param currentPage
     * @param pageSize
     * @return
     */
    ResponseData queryActivityList(Integer currentPage, Integer pageSize);
    /**
     *添加活动
     * @param activity
     * @return
     */
    ResponseData addActivity(Activity activity);
    /**
     *修改活动信息
     * @param activity
     * @return
     */
    ResponseData updateActivity(Activity activity);
    /**
     *根据活动id删除活动
     * @param activity_id
     * @return
     */
    ResponseData delActivity(Integer activity_id);
    /**
     *关键字搜索活动信息
     * @param currentPage
     * @param pageSize
     * @param keyword
     * @return
     */
    ResponseData searchActivityList(Integer currentPage, Integer pageSize, String keyword);
    /**
     *根据活动id查询活动信息
     * @param activity_id
     * @return
     */
    ResponseData editActivity(Integer activity_id);
    /**
     *将图片的相对路径保存到数据库
     * @param fileDataBasePath
     * @return
     */
    void uploadFile(String fileDataBasePath);
    /**
     *修改活动没有修改图片
     * @param activity
     * @return
     */
    ResponseData updateActivityNoFile(Activity activity);
}
